package edu.sctu.zhengsenwen.month201506.day20150628;

/**
 * Created by user15 on 2015/6/28.
 */
public class ThreadControl extends Thread {

    public void run() {

        HttpRequest httpRequest = new HttpRequest();
        String result = httpRequest.sendGet("http://api.ii.com.cn/goods/apprec", "page=1&size=10");

        try {
           // 通过线程5秒之后获取接口数据
            sleep(5000);

        } catch (InterruptedException e) {
        }
        System.out.println(result + "获取数据成功");
    }
}



